package com.kingyun.gpsinspection.purificationservice.dao.mapper.tdm;


import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.Maintenance;
import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.MaintenanceVo;

import java.util.List;

public interface MaintenanceMapper {
    int deleteByPrimaryKey(String maintenanceId);

    int insert(Maintenance record);

    int insertSelective(Maintenance record);

    Maintenance selectByPrimaryKey(String maintenanceId);

    int updateByPrimaryKeySelective(Maintenance record);

    int updateByPrimaryKey(Maintenance record);

    MaintenanceVo selectByPrimaryKeyNew(String maintenanceId);

    int updateByPrimaryKeyNew(Maintenance record);

    MaintenanceVo findVoByPiPiid(String piPiid);

    int updateTaskStatusExecutedById(Maintenance checkRepair);

    int updateFinishById(Maintenance maintenance);

    int updateAuditStatusById(Maintenance maintenance);

    /**
     * 查询当月的维护保养任务基本信息(不包含周期任务)
     *
     * @param maintenanceVo 查询条件封装类
     */
    List<MaintenanceVo> queryMaintenanceToDate(MaintenanceVo maintenanceVo);
}